const {PhoneReg} = require("@/zy-common/utils/regex")

const descriptor = {
  phone: [
    {
      type: 'string',
      required: true,
      message:'手机号码不能为空'
    },
    {
      required: true,
      pattern: PhoneReg,
      message: "请输入正确的手机号",
    },
  ],
  code:[
    {
      required:true,
      type:'string',
      message:'验证码不能为空'
    },
    {
      min:5,
      max:6,
      message:'验证码输入错误'
    }
  ]
};

module.exports = descriptor